package com.chinasofti.controluser.controller;

import com.chinasofti.controlcommon.common.ServerResponse;
import com.chinasofti.controlcommon.domain.entity.SysMenu;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.chinasofti.controluser.service.ControlMenuServcie;

@Slf4j
@RestController
public class MenuController {

    @Autowired
    private ControlMenuServcie controlMenuServcie;
    //新增菜单
    @RequestMapping("/addMenu")
    public ServerResponse insert(@RequestBody SysMenu sysMenu) {
        return controlMenuServcie.insert(sysMenu);
    }
}
